package model;

import java.math.BigDecimal;
import java.util.UUID;

import android.framework.binding.Item;

public class Member extends Item {
	private UUID memberId;
	
	public Member(UUID memberId) {
		super();
		this.memberId = memberId;
	}

	private User user;
	private Moneybag moneybag;
	
	public Member(UUID memberId, User user, long moneybagAmount) {
		this(memberId, user, new Moneybag(moneybagAmount));
	}
	
	public Member(UUID memberId, User user, BigDecimal moneybagAmount) {
		this(memberId, user, new Moneybag(moneybagAmount));
	}
	
	public Member(UUID memberId, User user, Moneybag moneybag) {
		this(memberId);
		this.user = user;
		this.moneybag = moneybag;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Moneybag getMoneybag() {
		return moneybag;
	}

	public void setMoneybag(Moneybag moneybag) {
		this.moneybag = moneybag;
	}

	public UUID getMemberId() {
		return memberId;
	}

	public void setMemberId(UUID memberId) {
		this.memberId = memberId;
	}
}
